function Parent(name) {
  this.name = name;
}
Parent.prototype.getName = function () {
  console.log(this.name);
};
function Child(name) {
  this.sex = "boy";
  Parent.call(this, name);
}
Child.prototype = Object.create(Parent.prototype);
Child.prototype.constructor = Child;

var child1 = new Child("child1");
console.log(child1);
child1.getName();

console.log(child1 instanceof Child);
console.log(child1 instanceof Parent);

console.log(Child.__proto__);
